package com.bb.blog.biz.manage.config;

import com.bb.blog.security.resource.BaseResourceServerConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;


@Configuration
@EnableWebSecurity(debug = true)
public class ResourceServerConfig extends BaseResourceServerConfig {
    @Override
    public void configure(HttpSecurity http) throws Exception {
        super.configure(http);
        http.authorizeRequests().antMatchers("/auth/userInfo").authenticated()
            .anyRequest().permitAll();
    }
}
